﻿using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Identification.Importer.Core.Entity
{
    [BsonIgnoreExtraElements(true)]
    public class BaseModel
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string _id { get; set; }

        [BsonElement("GlblId")] public string GlobalId { get; set; }

        [BsonElement("CrtTm")] public DateTime CreateTime { get; set; }

        [BsonElement("LstUpdtTm")] public DateTime LastUpdateTime { get; set; }
    }
}